#!/usr/bin/env python

import os

class Search():
    def __init__(self):
        self.database = self.load(os.getcwd() + "/googleHacks")
        self.parameters = {'search': 'Use this to look for known dorks with keywords'
                          }
        
    def find(self, parameter, case = False):
        results = []
        for line in self.database:
            if parameter in line:
                results.append(line)
        return results
        
    def load(self, file_path):
        file = open(file_path, 'r')
        data = file.readlines()
        file.close()
        return data